<?php /* Smarty version 2.6.26, created on 2015-10-24 15:11:47
         compiled from show.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'show.html', 37, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<link rel="stylesheet" href="Public/Home/Css/question.css" />
	<script type="text/javascript" src="Public/Home/Js/question.js"></script>
<!-- top 结束-->
	<div id='location'>
		<a href="./index.php?c=List">全部分类</a>
		<?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['fatherCate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
			<?php if ($this->_tpl_vars['smatry']['section']['n']['last']): ?>
			&gt;&nbsp;<?php echo $this->_tpl_vars['fathserCate'][$this->_sections['n']['index']]['title']; ?>
&nbsp;&nbsp;
			<?php else: ?>
			&gt;&nbsp;<a href="./index.php?c=List&cid=<?php echo $this->_tpl_vars['fatherCate'][$this->_sections['n']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['fatherCate'][$this->_sections['n']['index']]['title']; ?>
</a>&nbsp;&nbsp;
			<?php endif; ?>
		<?php endfor; endif; ?>
	</div>

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<div class='ans-state <?php if ($this->_tpl_vars['askData']['solve'] == 0): ?> wait <?php endif; ?>'></div>
					<div class='answer'>
						<p class='ans-title'><?php echo $this->_tpl_vars['askData']['content']; ?>

							<b class='point'><?php echo $this->_tpl_vars['askData']['reward']; ?>
</b>
						</p>
					</div>
					<ul>
						<li><a href=""><?php echo $this->_tpl_vars['askData']['username']; ?>
</a></li>
						<li><i class='level lv<?php echo $this->_tpl_vars['askData']['lv']; ?>
' title='Level <?php echo $this->_tpl_vars['askData']['lv']; ?>
'></i></li>
						<li><?php echo ((is_array($_tmp=$this->_tpl_vars['askData']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</li>
					</ul>
					<!--1.必须登陆，2.必须没有被解决，3.必须不是自己的问题-->
					<?php if ($_SESSION['uid'] && $_SESSION['uname'] && $this->_tpl_vars['askData']['username'] != $_SESSION['uname'] && $this->_tpl_vars['askData']['solve'] == 0): ?>
					<div class='ianswer'>
						<form action="./index.php?c=Ask&a=answer&asid=<?php echo $this->_tpl_vars['askData']['asid']; ?>
&cid=<?php echo $this->_tpl_vars['askData']['cid']; ?>
&uid=<?php echo $_SESSION['uid']; ?>
" method='POST'>
							<p>我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='qid' value=''>
							<input type="submit" value='提交回答' id='anw-sub'/>
						</form>
					</div>
					<?php endif; ?>
					<!-- 满意回答 -->
					
					<?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['satisfy']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
					<?php if ($this->_sections['n']): ?>
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						<p class='ans-cons'><?php echo $this->_tpl_vars['satisfy'][$this->_sections['n']['index']]['content']; ?>
</p>
						<dl>
							<dt>
								<a href=""><img src="<?php echo $this->_tpl_vars['satisfy'][$this->_sections['n']['index']]['face']; ?>
" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href=""><?php echo $this->_tpl_vars['satisfy'][$this->_sections['n']['index']]['username']; ?>
</a>
							</dd>
							<dd><i class='level lv<?php echo $this->_tpl_vars['satisfy'][$this->_sections['n']['index']]['lv']; ?>
'></i></dd>
							<dd><?php echo $this->_tpl_vars['satisfy'][$this->_sections['n']['index']]['c']; ?>
</dd>
						</dl>
					</div>
								
					<?php endif; ?>
					<?php endfor; endif; ?>
					<!-- 满意回答 -->
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong><?php echo $this->_tpl_vars['countQues']['c']; ?>
</strong> 条回答</p>
					<ul>
						<?php $_from = $this->_tpl_vars['questionData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['q']):
?>
						<li>
							<div class='face'>
								<a href="">
									<img src="<?php echo $this->_tpl_vars['q']['face']; ?>
" width='48' height='48' alt=''/>
								</a>
							</div>
							<div class='cons blue'>
								<p><?php echo $this->_tpl_vars['q']['content']; ?>
<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(<?php echo ((is_array($_tmp=$this->_tpl_vars['q']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
)</span></p>
							</div>
							<!--如果登录的用户和提问问题的用户不同的话就不能显示采纳按钮-->
							<?php if ($this->_tpl_vars['askUser']['uid'] == $_SESSION['uid'] && $this->_tpl_vars['q']['accept'] == 0 && $this->_tpl_vars['askUser']['username'] == $_SESSION['uname']): ?>
								<!--1.必须登陆 2.必须没有被解决 3.必须是自己的问题，同时满足3个条件才可以出来-->
								
								<a href="./index.php?c=Ask&a=accept&anid=<?php echo $this->_tpl_vars['q']['anid']; ?>
&asid=<?php echo $this->_tpl_vars['q']['asid']; ?>
&uid=<?php echo $this->_tpl_vars['q']['uid']; ?>
&user=<?php echo $this->_tpl_vars['askData']['uid']; ?>
" class='adopt-btn'>采纳</a>
							<?php endif; ?>
						</li>
						<?php endforeach; endif; unset($_from); ?>
						
					</ul>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
						<?php $_from = $this->_tpl_vars['about']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a']):
?>
						<tr>
							<td class='t1'><a href="./index.php?c=Ask&cid=<?php echo $this->_tpl_vars['a']['cid']; ?>
&asid=<?php echo $this->_tpl_vars['a']['asid']; ?>
"><?php echo $this->_tpl_vars['a']['content']; ?>
</a></td>
							<td><?php echo $this->_tpl_vars['a']['answer']; ?>
&nbsp;回答</td>
							<td><?php echo ((is_array($_tmp=$this->_tpl_vars['a']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
						</tr>
						<?php endforeach; endif; unset($_from); ?>
					</table>
				</div>
			</div>
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/right.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!-- ---右侧结束---- -->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<div id='bottom'>
		<p>Copyright © 2013 Qihoo.Com All Rights Reserved 后盾网</p>
		<p>京公安网备xxxxxxxxxxxx</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="Public/Home/Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->